//
//  FunctionItem.m
//  Stream
//
//  Created by shaw on 16/8/7.
//  Copyright © 2016年 showshaw. All rights reserved.
//

#import "FunctionItem.h"

@implementation FunctionItem


-(void)encodeWithCoder:(NSCoder *)aCoder
{
    [aCoder encodeInteger:self.ID forKey:@"ItemID"];
    [aCoder encodeObject:self.iconUrl forKey:@"ItemIconURL"];
    [aCoder encodeObject:self.desc forKey:@"ItemDesc"];
    [aCoder encodeObject:self.name forKey:@"ItemName"];
    [aCoder encodeObject:self.url forKey:@"ItemURL"];
    [aCoder encodeBool:self.focused forKey:@"ItemFocused"];
}

-(instancetype)initWithCoder:(NSCoder *)aDecoder
{
    if (self = [super init]) {
        self.ID = [aDecoder decodeIntegerForKey:@"ItemID"];
        self.iconUrl = [aDecoder decodeObjectForKey:@"ItemIconURL"];
        self.desc = [aDecoder decodeObjectForKey:@"ItemDesc"];
        self.name = [aDecoder decodeObjectForKey:@"ItemName"];
        self.url = [aDecoder decodeObjectForKey:@"ItemURL"];
        self.focused = [aDecoder decodeBoolForKey:@"ItemFocused"];
    }
    return self;
}
@end


@implementation FunctionGroup


@end